<template>
	<view >
		<view class="style1" :style="'height:'+webViewHeight+'px;'">
			<web-view  :src="url"></web-view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			var con = '/static/banner/vr.png'
			return{
				winHeight:getApp().globalData.winHeight,
				tabBarHeight:getApp().globalData.tabBarHeight,
				webViewHeight:0,
				// conte:[],
				url:'http://www.sizhengziyuanku.com/',
			}
		},
		created() {
			this.webViewHeight = this.winHeight;
			console.log(this.webViewHeight);
			// console.log(this.tabBarHeight);
		},
		methods:{

		},
		onLoad(res) {
			if(res.url){
				this.url = res.url;
			}
			if(res.title){
				uni.setNavigationBarTitle({
					title:res.title,
				})
			}
		}
	}
</script>

<style>
.style1{
	width: 100%;
	/* height: 200upx; */
	/* background-color: #007AFF; */
}
.uni-app--showtabbar uni-page-wrapper::after {
    height: 0px;
    /* height: calc(50px + constant(safe-area-inset-bottom)); */
    /* height: calc(50px + env(safe-area-inset-bottom)); */
}
</style>
